package com.ms.p2p.provider;


import com.ms.common.utils.PageData;
import com.ms.p2p.bean.PageBean;
import com.ms.p2p.entity.Page;
import com.ms.p2p.entity.content.Article;

import java.util.List;


public interface ArticleProvider {



    public int insert(Article map);


    public int update(Article map);


    public int delete(int id) ;

    public Article get(String id);

    public List<Article> getNewsNoticesPage(PageBean page, String title,
                                            String author, String status, String type, String issueDate_begin,
                                            String issueDate_end);

    public int selectNewsNoticesCount(String title, String author,
                                      String status, String type, String issueDate_begin,
                                      String issueDate_end);


    public List<Article> getIndexNotice(int type, PageBean page);



    public List<Article> findPager(int category, String status, PageBean page);

    public int findCount(int classid, String status);

    public  Page  listAll(Page pages);
}
